<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }

    .btn-cancel-thumbnail {
        margin-top: 5px;
    }

    #photos, #files {
        margin-bottom: 0;
    }
</style>

</head>
<body>
<div class="wrap js-check-wrap">
    <form action="{:url('AdminQuestions/editPost')}" method="post" class="form-horizontal js-ajax-form">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">


                    <tr>
                        <th>问题</th>
                        <td>
                            <textarea disabled class="form-control" name="post[description]" style="height: 50px;"
                                      placeholder="请填写问题">{$post.description}</textarea>
                        </td>
                    </tr>


                    <tr>
                        <th>回答</th>
                        <td>
                            <textarea  class="form-control" name="post[answer]" style="height: 50px;"
                                      placeholder="请填写回答">{$post.answer}</textarea>
                        </td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-12 text-center">
                        <input type="hidden" name="post[id]" value="{$post.id}">
                        <button type="submit" class="btn btn-primary js-ajax-submit">回复</button>
                        <a class="btn btn-default" href="{:url('AdminQuestions/index')}">{:lang('BACK')}</a>
                    </div>
                </div>


            </div>
        </div>

    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js?v={$_static_version}"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">



</script>


</body>
</html>
